package comWorld.action.blog;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import comWorld.blogComment.BlogCommentManage;

/**
 * Servlet implementation class DeleteComment
 */
@WebServlet("/action/blog/deleteComment")
public class DeleteComment extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public DeleteComment() {
        super();
    }

	/**
	 * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse response)
	 */
	public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		int blogId = Integer.valueOf(request.getParameter("blogId"));
		int commentId = Integer.valueOf(request.getParameter("commentId"));
		BlogCommentManage.deleteBlogComment(blogId, commentId);
	}

}
